<template>
  <div class="show">
    <form action="/">
      <van-search
        v-model="value"
        show-action
        placeholder="请输入搜索关键词"
        @search="onSearch"
        @cancel="onCancel"
      />
    </form>
  </div>
</template>

<script>
export default {
    data() {
        return {
            value:''
        }
    },
  methods: {
    onSearch() {
      // 点击搜索
    //   根据id跳转到详情
    console.log(1);
    },
    // 点击取消
    onCancel() {
      this.$router.back();
    },
  },
};
</script>

<style lang="less" scoped>
.show {
  .van-tabbar--fixed {
    display: none;
  }
}
</style>